# 1,import two class
from launch import LaunchDescription
from launch_ros.actions import Node

# 2,define function
def generate_launch_description():
    # You can define Node directly or return LaunchDescription.
    # I am used to defining Node first.
    # 3,create node object
    int64_node=Node(
        package='startup_multi_node',
        executable='print_int64_exec'
    )
    string_node=Node(
        package='startup_multi_node',
        executable='print_string_exec'
    )

    # 4,create LaunchDescription object,add node to LaunchDescription object
    # ld=LaunchDescription()
    # ld.add_action(int64_node)
    # ld.add_action(string_node)
    ld=LaunchDescription([int64_node,string_node])

    # 5, return ld
    return ld